package io.kiki.sba.registry.common.model.metaserver.nodes;

import io.kiki.sba.registry.common.model.store.Url;


public class CentralControlNode extends AbstractNode {


    public CentralControlNode(Url nodeUrl, String dataCenter) {
        super(dataCenter, nodeUrl, null);
    }

    @Override
    public NodeType getNodeType() {
        return NodeType.central_control;
    }


    public String getDataCenter() {
        return dataCenter;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        CentralControlNode that = (CentralControlNode) o;
        return super.equal(that);
    }

    @Override
    public int hashCode() {
        return super.hash();
    }
}
